#ifndef CZENMESH_H
#define CZENMESH_H

#include "ZenObject.h"
#include "ZenMaterial.h"

class CZenMesh : public CZenObject
{
private:
	CZenEngine			zen;
	int					m_NumMats;

protected:
	bool				m_bDefaultTexture;
	LPD3DXMESH			m_pMesh;
	LPDIRECT3DTEXTURE8*	m_pTextures;
	CZenMaterial*		m_pMaterials;		

public:
	CZenMesh();
	~CZenMesh();

	HRESULT LoadXFile(char * pstrPathName);
	HRESULT Render();
	int GetSize();
	void ClearTexture();
	void SetMaterial( CZenMaterial* pMaterial );
};

#endif //CZENMESH_H
